%h1 Partnerships
- @partnerships.each do |partnership|
  - if !partnership.user.nil? && !partnership.gallery.nil?
    %div
      %strong
        %a{:href => user_url(partnership.user)}= partnership.user.login
      is partnered with 
      %strong
        %a{:href => gallery_url(partnership.gallery)}= partnership.gallery.name
  - if !partnership.user.nil? && !partnership.photo.nil?
    %div
      %strong
        %a{:href => user_url(partnership.user)}= partnership.user.login
      is partnered with 
      %strong
        %a{:href => photo_url(partnership.photo)}= partnership.photo.public_filename
  - if !partnership.photo.nil? && !partnership.gallery.nil?
    %div
      %strong
        %a{:href => photo_url(partnership.photo)}
          = partnership.photo.public_filename
      is partnered with 
      %strong
        %a{:href => gallery_url(partnership.gallery)}= partnership.gallery.name